def factorial(n):
    if n == 0:
        return 1
    ret = 1
    while n!=0:
        ret *= n
        n-=1
    return ret
def cnt_trailing_zeros(n):
    cnt=0
    while n%10 == 0:
        n //= 10
        cnt+=1
    return cnt
for i in range(1,20001):
    print(f"{i},{cnt_trailing_zeros(factorial(i))}")
